package com.hangim.hangimsia.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.hangim.hangimsia.common.domain.IdEntity;

import java.util.Date;

/**
 * <p>
 * 字库
 * </p>
 *
 * @author hongjiliang
 * @since 2018-10-20
 */
@TableName("sys_character")
public class SysCharacter extends IdEntity {

    /**
     * 义部
     */
    private String sense;
    /**
     * 义部Id
     */
    @TableField("sense_id")
    private Long senseId;
    /**
     * 类型
     */
    private String type;
    /**
     * 声部
     */
    private String sound;
    /**
     * 声部Id
     */
    @TableField("sound_id")
    private Long soundId;
    /**
     * 繁体
     */
    private String complex;
    /**
     * 简体
     */
    private String simple;
    /**
     * 释义
     */
    private String comment;
    /**
     * 简述
     */
    private String description;
    /**
     * 状态
     */
    private Integer active;
    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * 创建人
     */
    @TableField("created_by")
    private Long createdBy;
    /**
     * 修改时间
     */
    @TableField("updated_at")
    private Date updatedAt;
    /**
     * 修改人
     */
    @TableField("updated_by")
    private Long updatedBy;
    /**
     * 删除人
     */
    @TableField("deleted_at")
    private Date deletedAt;
    /**
     * 删除时间
     */
    @TableField("deleted_by")
    private Long deletedBy;

    public String getSense() {
        return sense;
    }

    public void setSense(String sense) {
        this.sense = sense;
    }

    public Long getSenseId() {
        return senseId;
    }

    public void setSenseId(Long senseId) {
        this.senseId = senseId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSound() {
        return sound;
    }

    public void setSound(String sound) {
        this.sound = sound;
    }

    public Long getSoundId() {
        return soundId;
    }

    public void setSoundId(Long soundId) {
        this.soundId = soundId;
    }

    public String getComplex() {
        return complex;
    }

    public void setComplex(String complex) {
        this.complex = complex;
    }

    public String getSimple() {
        return simple;
    }

    public void setSimple(String simple) {
        this.simple = simple;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getActive() {
        return active;
    }

    public void setActive(Integer active) {
        this.active = active;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Long getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Long createdBy) {
        this.createdBy = createdBy;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Long getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(Long updatedBy) {
        this.updatedBy = updatedBy;
    }

    public Date getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(Date deletedAt) {
        this.deletedAt = deletedAt;
    }

    public Long getDeletedBy() {
        return deletedBy;
    }

    public void setDeletedBy(Long deletedBy) {
        this.deletedBy = deletedBy;
    }

    @Override
    public String toString() {
        return "SysCharacter{" +
                ", id=" + id +
                ", sense=" + sense +
                ", senseId=" + senseId +
                ", type=" + type +
                ", sound=" + sound +
                ", soundId=" + soundId +
                ", complex=" + complex +
                ", simple=" + simple +
                ", comment=" + comment +
                ", description=" + description +
                ", active=" + active +
                ", createdAt=" + createdAt +
                ", createdBy=" + createdBy +
                ", updatedAt=" + updatedAt +
                ", updatedBy=" + updatedBy +
                ", deletedAt=" + deletedAt +
                ", deletedBy=" + deletedBy +
                "}";
    }
}
